package org.kotlinlang.play

val systemUsers: MutableList<Int> = mutableListOf(1, 2, 3)
val sudoers: List<Int> = systemUsers

fun addSystemUser(newUser: Int) {
    systemUsers.add(newUser)
}

fun getSysSudoers(): List<Int> {
    return systemUsers
}

val set: MutableSet<String> = mutableSetOf("a", "b", "c", "a")

val user: Map<String,Int> = mutableMapOf("a" to 1, "b" to 2)


fun main() {
    addSystemUser(4)
    println("Tot sudoers: ${getSysSudoers().size}")
    getSysSudoers().forEach { i ->
        println("some useful info on user $i")
    }
    println(sudoers)
    println(set)
}